HOW TO Upgrade from Google stock to Linage OS 19.1: 0/ Optional - Screenshot launcher layout 1/ USE GOOGLE BACKUP 3/ titanium backup 4/ ftp backup 5/ FASTBOOT: fastboot flash boot lineage-19.1-20220503-recovery-crosshatch.img 6/ RECOVERY: adb sideload lineage-19.1-20220503-nightly-crosshatch-signed.zip 7/ REBOOT TO RECOVERY: adb sideload MindTheGapps-12.1.0-arm64-20220416_174313.zip adb sideload Magisk-v24.3.apk 8/ BOOT TO LINEAGEOS 19.1 CONNECT TO WIFI LOS SETUP RESTORE THE GOOGLE BACKUP DURING GOOGLE SETUP WAIT FOR 30m FOR EVERYTHING TO DOWNLOAD (GO OUTSIDE) 9/ ftp restore 10/ titanium restore all missing 11/ titanium restore all data reboot. 12/ setup phone --- --- --- Simple Update, Keep Recovery & Magisk PREP DOWNLOADS: 1. Download Magisk Manager APK, and install it. FROM: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445 MagiskManager-v5.6.4.apk 2. Download Magisk ZIP FROM: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445 Magisk-v16.3.zip 3. Download TWRP Recovery ZIP FROM: https://dl.twrp.me/taimen/ twrp-pixel2-installer-taimen-3.2.1-2.zip 4. Download the "latest official rom" ZIP. Extract it. FROM: https://developers.google.com/android/images taimen-opm2.171019.029-factory-2937a399.zip PUSH THE FILES TO DEVICE: 5. Grab the boot IMG to patch (boot-ppp1.180208.014.img) from the extracted "latest official rom" ZIP. You can choose either the one from the latest factory image or a custom kernel one. OPTIONAL: Use FTP or USB to copy the files. adb push /sdcard/MagiskManager adb push /sdcard/MagiskManager adb push /sdcard/MagiskManager PATCH: 6. Open Magisk Manager and click "Install" at the first prompt. 7. Choose "Patch Boot Image File". A file manager will pop up. 8. Select the boot image you want to patch (/sdcard/MagiskManager/...img), and let Magisk Manager patch it. 9. Pull it off your device. OPTIONAL: Use FTP or USB to copy the file. adb pull /sdcard/MagiskManager/patched_boot.img FLASH ROM UPDATE TO DEVICE: 10. From the extracted "latest official rom", edit the flash-all.bat file. -Remove "-w" from the "fastboot update" line. -Remove "exit" from last line. (OPTIONAL) 11. Power off device 12. Boot the device into fastboot (power + down) 13. run the flash-all and let it do its thing. 14. boot up into system. login and wait for it to finalize the setup. 15. Power off device 16. -Boot the device into fastboot (power + down) adb reboot bootloader 17. Flash the boot image and reboot. Code: fastboot flash boot patched_boot.img fastboot reboot Pixel 3 XL fastboot flash boot_a boot-crosshatch-sp1a.210812.016.c1-patched.img fastboot flash boot_b boot-crosshatch-sp1a.210812.016.c1-patched.img fastboot reboot 18. Open Magisk Manager and your device should be rooted. done. INSTALL TWRP (OPTIONAL): 19. Reboot back to the bootloader adb reboot bootloader 20. Soft-boot in to TWRP recovery. fastboot boot twrp-3.3.1-1-crosshatch.img 21. Install twrp.zip and magisk.zip. 22. Wipe cache and dalvik. 23. Reboot done. --- --- --- old: Simple Update, Keep Recovery & Magisk 1. download the latest 10.0 official and extract 2. edit the flash-all.bat file and remove the -w 3. run flash-all and let it do its thing 4. boot up into system. login GO TO "Root the Pixel 2 / Pixel 2 XL" below done. OPTIONAL: 5. reboot back to the bootloader 6. fastboot boot twrp.img 7. install twrp.zip and magisk.zip 8. reboot done. --- --- How to Unlock Bootloader Without Losing Data: https://forum.xda-developers.com/pixel-2-xl/development/twrp-alpha-pixel-2-xl-t3698148/post74727874#post74727874 Disable Lockscreen security before making the backup. After restore, enabled PIN and register fingerprints again. Backup only: Boot Data System NOTE: You don't have to make separate backups of each partition, just select all the ones you want at 1 time. Boot, Data, and System should be all you need. You might want to select Vendor as well if you think you might make modifications to that partition at some point. If you don't plan to use Magisk or some other means of defeating avb-verity, then you would want to select System Image and Vendor Image instead of System and Vendor respectively. But your backups will be bigger in size. Completely wipe phone (flashing unlock_critical), then flash factory image without removing -w. I did: 1. fastboot boot twrp.img 2. adb pushed my nandroid backup to my phone 3. a flash. Once I booted, Magisk complained about dtbo and patched it and asked me to reboot. So if you are restoring Vendor for some reason, flash the Magisk zip before rebooting or else you might have issues with avb-verity. Everything restored correctly. Working TWRP Working Kernel Working Magisk Working phone --- --- System Images: https://developer.android.com/preview/download.html How to Unlock Bootloader and Root the Google Pixel 2 and Pixel 2 XL https://www.xda-developers.com/how-to-unlock-bootloader-and-root-the-google-pixel-2-and-pixel-2-xl/ https://forum.xda-developers.com/pixel-xl/how-to/guide-pixel-xl-android-8-1oreo-unlock-t3715279 Many enthusiasts expected that achieving root on the first-generation Google Pixel would be just as easy as rooting Google’s Nexus devices, but that didn’t turn out to be the case. Android Nougat’s A/B partition system created a lot of headache for developers in the beginning, and the Pixel’s incompatibility with the most common exploits only added to challenge. Needless to say, there was reason to worry about Pixel 2 and the Pixel 2 XL. But luckily, development seems to be moving along just fine. In late October, an alpha port of TWRP was made available for the Pixel 2 and Pixel 2 XL. And this week, XDA Recognized Developer / Recognized Contributor nathanchance has released guides to unlocking, flashing, and rooting both phones. Here’s how to get started: ### Install Fastboot and ADB 1. Unzip the folder on your hard drive. 2. Go to the folder containing the ADB and Fastboot files and type “cmd” in the path bar at the top. 3. A command prompt should open with the current folder showing on the prompt. 4. Type the following commands: Code: adb --version fastboot --version At this point, you should see some information appear. If that is the case, Fastboot and ADB have been successfully installed. ### Unlock the bootloader of the Pixel 2 / Pixel 2 XL The guide notes that unlocking your Pixel 2 or Pixel 2 XL’s bootloader will wipe the phone. It’s a good idea to make a backup of any important data in case something goes wrong. 1. On your phone, open Settings, navigate to System then About phone, and tap on the build number seven times. 2. The Developer Options will now be visible in the main settings page. Enter it and turn on USB debugging and OEM unlocking. 3. Plug your phone into your computer, and type the following command in the Windows command terminal: adb reboot bootloader 4. Next, decide if you want to do a standard unlock or critical unlock. A critical unlock allows you to directly flash bootloader files. Otherwise, you will get an error when you try to do so. 5. Depending on what you decided in the previous step, run one of the following commands: fastboot flashing unlock OR fastboot flashing unlock_critical Follow the prompts on your device, and then reboot. ### Root the Pixel 2 / Pixel 2 XL 1. Download Magisk Manager from the official thread and install it. 2. Grab a boot image to patch (you can choose either the one from the latest factory image or a custom kernel one) and push it to your device with this command: adb push /sdcard/Download 3. Open Magisk Manager and click the Install button. 4. Click Install at the first prompt then choose Patch Boot Image File. A file manager will pop up. 5. Select the boot image you want to patch and let Magisk Manager patch it. 6. Pull it off your device with this command: adb pull /sdcard/MagiskManager/patched_boot.img 7. Reboot into the bootloader: adb reboot bootloader 8. Flash the boot image and reboot.Code: fastboot flash boot patched_boot.img fastboot reboot 9. Open Magisk Manager and your device should be rooted. Forum thread for the Pixel 2 XL for tips on unlocking, flashing factory images, and rooting: https://forum.xda-developers.com/pixel-2-xl/how-to/guide-unlock-flash-root-pixel-2-xl-t3702418 ---- ---- FOR REFERENCE: ping -n 5 127.0.0.1 >nul fastboot reboot-bootloader fastboot erase system fastboot erase recovery fastboot erase cache fastboot erase boot fastboot erase userdata fastboot erase vendor fastboot flash system system.img fastboot flash recovery recovery.img fastboot flash cache cache.img fastboot flash boot boot.img fastboot flash vendor vendor.img ---- ----